<?php
/**
 * Create By: PhpStorm
 * User: yihua
 * File: Coupon.php
 * Date: 2017/1/18
 * Time: 0:03
 */
namespace app\api\controller;

use think\Request;
use app\api\model\page\shop\AddCoupon;
use app\api\model\page\shop\GetCoupon;

class Coupon
{
    private $param;

    public function __construct()
    {
        $this->param = Request::instance()->param();
    }

    public function getCoupon()
    {
        $obj = new GetCoupon();
        return $obj->excute($this->param);
    }

    public function addCoupon()
    {
        $obj = new AddCoupon();
        return $obj->excute($this->param);
    }
}